package com.example.cheeseerpadmin.bus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author cheese
 * @since 2022-02-14
 */
@Getter
@Setter
@TableName("bus_goods")
public class BusGoods implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String goodsname;

    private String produceplace;

    private String size;

    private String goodspackage;

    private String productcode;

    private String promitcode;

    private String description;

    private Double price;

    private Integer number;

    private Integer dangernum;

    private String goodsimg;

    private Integer available;

    private Integer providerid;

    /**
     * 因为要将bus_goods表当中的供应商id转换成具体的名称，所以我们这里还要增加两个数据表中不存在的属性字段，方便我们等下向前端传值的时候传递的是一个直接明了的数据
     * 供应商名称
     */
    @TableField(exist = false)
    private String providername;

}
